﻿@model MLManagement.Models.Product
@{
    ViewBag.Title = "Edit";
    Layout = "~/Views/Shared/_Layout.cshtml";
}

 <div class="well">
 <h3><p class="muted">Editar productos</p></h3>
 </div>
 
<script src="@Url.Content("~/Scripts/jquery.validate.min.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/jquery.validate.unobtrusive.min.js")" type="text/javascript"></script>

@using (Html.BeginForm()) {
    @Html.ValidationSummary(true)
    <fieldset>
       
        <p class="muted">Agregue los datos del nuevo producto, y luego presione el botón Crear</p>
        <hr />
       
        <div class="editor-label">
            @Html.LabelFor(model => model.Model)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Model)
            @Html.ValidationMessageFor(model => model.Model)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.Brand)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Brand)
            @Html.ValidationMessageFor(model => model.Brand)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.LogicalStock)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.LogicalStock)
            @Html.ValidationMessageFor(model => model.LogicalStock)           
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.PhysicalStock)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.PhysicalStock)
            @Html.ValidationMessageFor(model => model.PhysicalStock)
        </div>
        <p>
            <input type="submit" class="btn btn-success" value="Guardar" />
        </p>
    </fieldset>
}

<div>
    @Html.ActionLink("Volver", "Index")
</div>


